// 首页背景图
.background-image {
  position: relative;
  width: 750rpx;
  height: 450rpx;
  overflow: hidden;
  border-radius: 0 0 20rpx 20rpx;

  .t-image {
    width: 750rpx;
    height: 750rpx;
  }
}

// 首页主体区域
.index-container {
  position: absolute;
  top: 360rpx;
  padding: 0 20rpx;

  // 用户信息区域
  .user-info {
    width: 670rpx;
    height: 100rpx;
    display: flex;
    margin: 20rpx 0;
    padding: 20rpx;
    background-color: #ffffff;
    border-radius: 20rpx;
    align-items: center;

    .vip-user-info {
      display: flex;
      width: 320rpx;
      height: 100rpx;

      .t-avatar {
        background-color: #ffffff;
        margin-right: 20rpx;

        .t-icon {
          color: #007F61
        }
      }

      .username-level {
        display: flex;
        flex-direction: column;
        justify-content: space-around;

        .username {
          font-size: 30rpx;
          font-weight: 700;
          text-overflow: ellipsis;
          overflow: hidden;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 1;
        }

        .level {
          display: flex;
          font-size: 24rpx;
          color: #E79F34;
          align-items: center;
        }
      }
    }

    .vip-score-info {
      width: 350rpx;
      height: 100rpx;
      display: flex;
      align-items: center;

      .user-point {
        display: flex;
        width: 100rpx;
        height: 100rpx;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 28rpx;

        .point {
          font-size: 30rpx;
          font-weight: 700;
        }
      }

      .user-coupon {
        display: flex;
        flex-direction: column;
        width: 100rpx;
        height: 100rpx;
        justify-content: center;
        align-items: center;
        font-size: 28rpx;

        .coupon {
          font-size: 30rpx;
          font-weight: 700;
        }
      }

      .user-code {
        display: flex;
        flex-direction: column;
        width: 150rpx;
        height: 100rpx;
        justify-content: center;
        align-items: center;
        color: #007F61;
        font-size: 28rpx;
        position: relative;

        &::before {
          content: '';
          position: absolute;
          top: 20rpx;
          bottom: 20rpx;
          left: 15rpx;
          width: 3rpx;
          background-color: #E2E5EA;
        }
      }
    }
  }

  // 首页轮播图
  .t-swiper-host {
    height: 600rpx !important;

    .t-image {
      height: 100% !important;
    }
  }
}

// 会员码弹框
.t-dialog{
  width: 600rpx;
  height: 600rpx;
  display: flex;
  justify-content: center;
  align-items: center;
}